﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/Aquarius.Master" AutoEventWireup="true" CodeBehind="ChangeSetting.aspx.cs" Inherits="PanasonicWarranty.UI.ChangeSetting" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CssContent" runat="server">
    <style type="text/css">
        fieldset
        {
            padding: 10px 10px 10px 20px;
        }
        legend
        {
            margin: 0px 4px;
            padding:0px 4px;
            font-size:18px;
            font-weight:bold;
            width:auto;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        function readURL(input) {
            if (input.files && input.files[0]) {
                var reader = new FileReader();
                reader.onload = function (e) {
                    $('#ImagePreview').attr('src', e.target.result);
                }
                reader.readAsDataURL(input.files[0]);
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Change Setting
    </h2>
    <p>
        Use the form below to change your setting.
    </p>
    <span class="failureNotification">
        <asp:Literal ID="FailureText" runat="server"></asp:Literal>
    </span>
    <div>
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>
                    Email
                </td>
                <td>
                    <asp:TextBox ID="txtEmail" runat="server" />
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="Enter an e-mail address" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ErrorMessage="Enter a valid e-mail address" ControlToValidate="txtEmail" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    Gender
                </td>
                <td>
                    <asp:DropDownList ID="drdGender" runat="server">
                        <asp:ListItem Value="true">Male</asp:ListItem>
                        <asp:ListItem Value="false">Female</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    WebSiteURL
                </td>
                <td>
                    <asp:TextBox ID="textWebSiteURL" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    Country
                </td>
                <td>
                    <asp:TextBox ID="TextCountry" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    State
                </td>
                <td>
                    <asp:TextBox ID="TextState" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    AvatarURL
                </td>
                <td>
                    <asp:FileUpload ID="FileUpload1" runat="server" Width="217px" onchange="readURL(this);"/>
                </td>
            </tr>
            <tr>
                <td>
                    Signature
                </td>
                <td>
                    <asp:TextBox ID="TextSignature" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    FirstName
                </td>
                <td>
                    <asp:TextBox ID="TextFirstName" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    LastName
                </td>
                <td>
                    <asp:TextBox ID="TextLastName" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button id="btnOK" Text="OK" CssClass="btn" runat="server" OnClick="btnOK_Click" />
                </td>
                <td>
                    <asp:Button id="btnCancel" Text="Cancel" CssClass="btn" runat="server" OnClick="btnCancel_Click" />
                </td>
            </tr>
        </table>
        <div>
            <img id="ImagePreview" src="#" alt="your image" Height="55px" Width="50px"/>
        </div>    
    </div>
</asp:Content>
